(global.webpackJsonp = global.webpackJsonp || []).push([ [ "question/paper/index" ], {
    "18eb": function(e, t, i) {
        i.r(t);
        var n = i("c1a1"), o = i.n(n);
        for (var r in n) "default" !== r && function(e) {
            i.d(t, e, function() {
                return n[e];
            });
        }(r);
        t.default = o.a;
    },
    "5fec": function(e, t, i) {},
    7551: function(e, t, i) {
        i.d(t, "b", function() {
            return n;
        }), i.d(t, "c", function() {
            return o;
        }), i.d(t, "a", function() {});
        var n = function() {
            var e = this, t = (e.$createElement, e._self._c, !e.canShow || !e.isFull || 0 == e.configs.is_ios_pay && e.isIphone ? null : 2 == e.paper.price_type && parseFloat(e.paper.line_price) > 0);
            e.$mp.data = Object.assign({}, {
                $root: {
                    m0: t
                }
            });
        }, o = [];
    },
    "82ce": function(e, t, i) {
        (function(e) {
            i("1067"), n(i("66fd"));
            var t = n(i("ba0e"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, e(t.default);
        }).call(this, i("543d").createPage);
    },
    ba0e: function(e, t, i) {
        i.r(t);
        var n = i("7551"), o = i("18eb");
        for (var r in o) "default" !== r && function(e) {
            i.d(t, e, function() {
                return o[e];
            });
        }(r);
        i("d6fc");
        var c = i("f0c5"), a = Object(c.a)(o.default, n.b, n.c, !1, null, "b66aab9c", null, !1, n.a, void 0);
        t.default = a.exports;
    },
    c1a1: function(e, t, i) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0, i("7a6d");
            var n, o = i("9b63"), r = i("7960"), c = i("b806"), a = i("556d"), u = i("db8f"), s = i("a71e"), d = i("8434"), p = (f(i("03b8")), 
            f(i("801c")));
            function f(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            function h(e, t) {
                var i = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), i.push.apply(i, n);
                }
                return i;
            }
            function l(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var i = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? h(Object(i), !0).forEach(function(t) {
                        m(e, t, i[t]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : h(Object(i)).forEach(function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t));
                    });
                }
                return e;
            }
            function m(e, t, i) {
                return t in e ? Object.defineProperty(e, t, {
                    value: i,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = i, e;
            }
            var g = {
                components: {},
                computed: l(l({}, (0, i("26cb").mapGetters)([ "configs", "user", "mainColor", "iphoneXStyle", "isIphone" ])), {}, {
                    cancelStyle: function() {
                        return {
                            backgroundColor: "#fff",
                            color: this.mainColor,
                            border: "1rpx solid " + this.mainColor,
                            "border-radius": "8rpx"
                        };
                    },
                    confirmStyle: function() {
                        return {
                            backgroundColor: this.mainColor,
                            color: "#fff",
                            "border-radius": "8rpx"
                        };
                    }
                }),
                data: function() {
                    return {
                        swiperDateList: [ [] ],
                        swiperHeight: "",
                        type: 2,
                        isFull: !0,
                        info: {
                            width: "",
                            height: ""
                        },
                        weixinShares: "",
                        id: "",
                        paper: {
                            id: "",
                            type: "",
                            title: "",
                            price_type: "",
                            menu_style: "",
                            is_copy: "",
                            is_like: "",
                            is_try: "",
                            try_time: "",
                            screen_style: "",
                            is_speed_play: "",
                            buy: {
                                code: ""
                            },
                            marquee: {
                                marqueeSize: "",
                                marqueeColor: "",
                                marqueeOpacity: "",
                                marqueeIsCopyright: "",
                                marqueeCopyright: ""
                            }
                        },
                        params: {
                            type: 1,
                            id: ""
                        },
                        isShow: !0,
                        html: "",
                        curBtn: -1,
                        isPalyFlagBtn: !0,
                        topId: -1,
                        topIndex: -1,
                        comment_action: {
                            cid: 0,
                            uid: 0
                        },
                        isRequest: !1,
                        timeInter: "",
                        user_id: "",
                        courseLists: {
                            data: [],
                            params: {
                                type: 4,
                                paddingLR: "0px"
                            }
                        },
                        ewnData: {
                            img: "",
                            title: ""
                        },
                        canShow: !1,
                        isGoLearn: !0,
                        likes: 0,
                        isVip: "",
                        isBack: 1,
                        time_limit: "",
                        froms: "",
                        course_id: "",
                        heights: ""
                    };
                },
                created: function() {
                    var t = this;
                    e.getSystemInfo({
                        success: function(e) {
                            t.heights = (e.windowWidth / 1.64).toFixed(2) + "px";
                        }
                    });
                },
                mounted: function() {},
                onLoad: function(e) {
                    var t = this;
                    this.id = e.id || (0, u.getPageId)(t).id, this.froms = e.froms || "", this.course_id = e.courseId || "", 
                    this.params.id = e.id || (0, u.getPageId)(t).id, (0, s.isEmpty)(e.pid) || p.default.commit("config/SET_PID", e.pid), 
                    (0, s.isEmpty)(decodeURIComponent(e.scene).split("pid=")[1]) || p.default.commit("config/SET_PID", decodeURIComponent(e.scene).split("pid=")[1]), 
                    (0, c.init)(this).then(function(e) {
                        t.getVip(), t.getDetail();
                    }).catch(function(e) {
                        return console.log(e);
                    });
                },
                onShow: function() {},
                onHide: function() {
                    clearInterval(this.timeInter);
                },
                onUnload: function() {
                    clearInterval(this.timeInter);
                },
                onPageScroll: function(e) {},
                onShareAppMessage: function(e) {
                    var t = (0, s.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return "button" === e.from && this.$refs.BotShow.isBotShow(), {
                        title: "试卷详情",
                        path: "/question/paper/index?id=" + this.id + "&pid=" + t
                    };
                },
                onShareTimeline: function() {
                    var e = (0, s.isEmpty)(this.user.id) ? 0 : this.user.id;
                    return {
                        title: "试卷详情",
                        query: "id=" + this.id + "&pid=" + e,
                        imageUrl: this.paper.img
                    };
                },
                methods: (n = {
                    goPhb: function() {
                        (0, d.route)({
                            url: "/question/detail/champion",
                            type: 1,
                            data: {
                                paper_id: this.id,
                                question_id: this.paper.question_id
                            }
                        });
                    },
                    goRecord: function() {
                        (0, d.route)({
                            url: "/question/detail/wrongDetail",
                            type: 1,
                            data: {
                                id: this.paper.yd_id,
                                type: 2
                            }
                        });
                    },
                    getMember: function() {
                        (0, d.route)({
                            url: "/member/member/memCenter",
                            type: 1,
                            data: {}
                        });
                    },
                    getVip: function() {
                        var e = this;
                        (0, a.isVip)({}).then(function(t) {
                            e.isVip = t.vip;
                        });
                    },
                    ready: function() {
                        this.getChange(0);
                    },
                    clkVideo: function() {
                        this.getChange(0);
                    },
                    shareModal: function() {},
                    share: function() {
                        var e = this;
                        (0, r.h5JudgeLogin)(2).then(function(t) {
                            t || e.$refs.BotShow.isBotShow();
                        });
                    },
                    addLecturer: function() {
                        this.$refs.kewm.show();
                    },
                    goCs: function() {
                        (0, d.route)({
                            url: "/question/detail/detail",
                            type: 1,
                            data: {
                                id: this.id
                            }
                        });
                    },
                    bindPhoneSuccess: function() {},
                    successLogins: function() {},
                    getDetail: function() {
                        var t = this, i = {
                            id: t.id,
                            user_id: t.user_id
                        };
                        (0, o.paperInfo)(i).then(function(i) {
                            t.paper = i, 2 == t.paper.time_limit_type && (t.time_limit = t.paper.time_limit + "分钟"), 
                            t.html = i.content, t.$nextTick(function() {
                                t.getChange(0);
                            }), t.canShow = !0, e.setNavigationBarTitle({
                                title: t.paper.title
                            });
                        });
                    },
                    shareFriends: function() {}
                }, m(n, "share", function() {
                    var e = this;
                    (0, r.h5JudgeLogin)(2).then(function(t) {
                        t || e.$refs.BotShow.isBotShow();
                    });
                }), m(n, "tab", function(e, t) {
                    if (this.currentTab == t) return !1;
                }), m(n, "getChange", function(e) {
                    0 != e || this.getElementHeight(".swOne", 2);
                }), m(n, "swiperChange", function(e) {
                    e.target.current;
                }), m(n, "getElementHeight", function(t, i) {
                    var n = this;
                    setTimeout(function() {
                        e.createSelectorQuery().select(t).boundingClientRect(function(e) {
                            switch (i) {
                              case 2:
                                n.swiperHeight = e.height + 100 > 300 ? e.height + 65 : e.height + 50;
                                break;

                              default:
                                n.swiperHeight = e.height + 100 > 300 ? e.height + 50 : 300;
                            }
                        }).exec();
                    }, 200);
                }), m(n, "rightLoweR", function() {}), m(n, "goHome", function() {
                    e.reLaunch({
                        url: "/diy/diy/index"
                    });
                }), m(n, "dataReturn", function() {
                    this.inputComcontent = "", this.comment_action = {}, this.modalShow = !1;
                }), m(n, "putOrder", function(e) {
                    switch (e) {
                      case 1:
                        this.goOrder();
                    }
                }), m(n, "goOrder", function() {
                    var e = this;
                    (0, r.h5JudgeLogin)(2).then(function(t) {
                        t || (0, d.route)({
                            url: "/question/order/index",
                            type: 1,
                            data: {
                                id: e.id,
                                course_id: e.course_id,
                                froms: e.froms,
                                price_type: e.paper.price_type,
                                isVip: e.isVip
                            }
                        });
                    });
                }), n)
            };
            t.default = g;
        }).call(this, i("543d").default);
    },
    d6fc: function(e, t, i) {
        var n = i("5fec");
        i.n(n).a;
    }
}, [ [ "82ce", "common/runtime", "common/vendor" ] ] ]);